﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BMS.Entity.Dictionary
{
    /// <summary>
    /// 字典主表-存储键
    /// </summary>
    public class DictionaryKey : AuditField<int>
    {
        /// <summary>
        /// 字典名称-中文名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 字典键父级ID，以便存储待层级的信息，默认值为空，可空，可存类似与省市区的信息
        /// </summary>
        public int? DicKeyParentId { get; set; }
        /// <summary>
        /// 标识
        /// </summary>
        public string Identify { get; set; }
        /// <summary>
        /// 存储的键信息
        /// </summary>
        public string DicKey { get; set; }
        /// <summary>
        /// 排序值
        /// </summary>
        public int OrderSort { get; set; } = 100;
        /// <summary>
        /// 是否启用，0启用，1禁用
        /// </summary>
        public int IsEnable { get; set; } = 0;
        /// <summary>
        ///备注
        /// </summary>
        public string? Remark { get; set; }
    }
}
